import type { UserLoginForm } from '@/models/UserInfo/UserLoginForm'
import { http } from '@/utils/http'

const baseUrl = import.meta.env.VITE_API_PROXY ? `/api/userInfo` : `/userInfo`

export async function login(data: UserLoginForm) {
  return await http.get(`${baseUrl}/login`, {
    params: data,
  })
}
